<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<!-- 表示式
{{}} 

-->
<div id="app">
  {{name}}
  {{name.toUpperCase()}}
  <p>{{age >= 18 ? '成年' : '未成年'}}</p>
  <p>{{friend.name + '爱好: ' + friend.desc }}</p>
</div>

<body>
  <script src="../vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        name: 'FindYou.',
        age: 18,
        friend: {
          name: 'FindWho',
          desc: '热爱学习'
        }
      }
    })
  </script>
</body>

</html>